package com.lss.service;

import com.lss.bean.LoginControllerUser;
import com.lss.dao.LoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    LoginMapper loginMapper;

    @Override
    public LoginControllerUser checkLoginSuccessful(String username, String password) {
        return loginMapper.checkLoginSuccessful(username, password);
    }

    @Override
    public void changePassword(String username, String password) {
        loginMapper.changePassword(username, password);
    }

    @Override
    public String queryPassword(String username) {
        return loginMapper.queryPassword(username);
    }
}
